42f643bcaab191a3b4f220bfa38573a57f8b0ab4,spring-cloud-zookeeper-discovery/src/main/java/org/springframework/cloud/zookeeper/discovery/ZookeeperServiceInstances.java,ZookeeperServiceInstances,injectZookeeperServiceInstances,#List#String#,94
Before Change
private List<ServiceInstance<ZookeeperInstance>> injectZookeeperServiceInstances(
List<ServiceInstance<ZookeeperInstance>> accumulator, String name) throws Exception {
Collection<ServiceInstance<ZookeeperInstance>> instances = this.serviceDiscovery
.getServiceDiscovery().queryForInstances(name);
accumulator.addAll(convertCollectionToList(instances));
return accumulator;
}
After Change
List<ServiceInstance<ZookeeperInstance>> accumulator, String name)
throws Exception {
Collection<ServiceInstance<ZookeeperInstance>> instances = this.serviceDiscovery
.getServiceDiscoveryRef().get().queryForInstances(name);
accumulator.addAll(convertCollectionToList(instances));
return accumulator;
}